import request from '../axios'

export const update = (row: any) => {
  return request({
    url: '/api/blade-user/optionUser',
    method: 'post',
    data: row,
  })
}

export const getDeptTree = (tenantId: number) => {
  return request({
    url: '/api/blade-system/dept/tree',
    method: 'get',
    params: {
      tenantId,
    },
  })
}
